package org.jeecg.modules.biz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.biz.entity.BurnIncome;
import org.jeecg.modules.biz.mapper.BurnIncomeMapper;
import org.jeecg.modules.biz.service.BurnIncomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class BurnIncomeServiceImpl extends ServiceImpl<BurnIncomeMapper, BurnIncome> implements BurnIncomeService {
    @Autowired
    private BurnIncomeMapper incomeMapper;


    // 更新收益额 添加收益明细
    @Override
    public boolean updateBalanceByAddress(Integer balance, String address) {
        return incomeMapper.updateBalanceByAddress(balance, address);
    }

    @Override
    public Long canWithdrawalAmount(String address) {
        return incomeMapper.canWithdrawalAmount(address);
    }
}
